﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="list.aspx.vb" Inherits="prototype.list" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
    .style1
    {
        font-size: medium;
    }
    .style2
    {
        color: #3366CC;
    }
</style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        &nbsp;</p>
    <p>
           <br />&nbsp;&nbsp;&nbsp;&nbsp; <a href="../RSSfeed.aspx"><img alt="" style="width: 30px ; height:30px; border: none;" src="../Pictures/rss.png" /></a>&nbsp;
        </p>
<p>
    <strong><span class="style1"><span class="style2">Click here To</span> </span>
    </strong> <asp:Button ID="Button1" runat="server" Text="Add New Player" Width="138px" 
        PostBackUrl="~/AddNewPlayer.aspx" />
    </p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" 
        GridLines="None" Width="810px">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="details.aspx?ID={0}" DataTextField="LastName" 
                HeaderText="Name" Text="Player Name" />
            <asp:ImageField DataImageUrlField="PlayerPicture" HeaderText="Player Picture">
                <ControlStyle Height="260px" Width="350px" />
            </asp:ImageField>
            <asp:BoundField DataField="AddedBy" HeaderText="Added By" 
                SortExpression="AddedBy" />
            <asp:BoundField DataField="AddedDate" HeaderText="Added Date" 
                SortExpression="AddedDate" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PlayersConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:PlayersConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [Players]"></asp:SqlDataSource>
    </p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <br />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
</p>
</asp:Content>
